home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / C++ AppleLink Messages / CPlus.Dev$ 12⁄22⁄89 / 0006-Multiple base operat-Nov89 < prev    next >
Encoding:
Text File  |  1989-12-08  |  909 b   |  40 lines  |  [TEXT/GEOL]

  1. Item forwarded  by  CPLUS.ADMIN  to CP.ARCHIVES
  2.  
  3. Item forwarded  by  ALCABES      to CPLUS.APPLE$
  4.  
  5. Item    0637487                         29-Nov-89        02:24
  6.  
  7. From:   MID                             France, Dev, MID/Nautil
  8.  
  9. To:     CPLUS.DEV$                      C++ Interest List--Developers
  10.  
  11. Sub:    Multiple base operator new
  12.  
  13. From: Etienne Vautherin
  14.  
  15.  
  16. Hello C++ gurus !
  17.  
  18. I have a little question about multiple base classes.
  19.  
  20. Suppose:
  21.  
  22. class A {
  23. public:
  24.     void* operator new(long size) { ... }
  25. };
  26. class B { ... };
  27. class C : public A, public B { ... };
  28.  
  29. I think there is an ambiguity for C operator new. What is the C operator new?
  30. The A one or the B one? Reference Manual p.65 says "Ambiguities can be resolved
  31. by qualifying a name with its class name", but using new operator for class C
  32. can't qualify another thing that class C.
  33.  
  34. I am a very soon C++ beginner !
  35. Thanks
  36.  
  37. Etienne
  38.  
  39.  
  40.